package lv.pig.base.jpa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_user")
public class User extends BaseEntity
{
    /**
	 * 
	 */
    private static final long serialVersionUID = 6452611377655094749L;
    
    @Column(name = "login_name")
    private String loginName;
    
    @Column(name = "user_name")
    private String name;
    
    @Column(name = "user_pwd")
    private String password;
    
    @Column(name = "user_salt")
    private String salt;
    
    @Column(name = "user_email")
    private String email;
    
    @Column(name = "phone")
    private String phone;
    
    @Column(name = "failed_count")
    private int failedCount = 0;
    
    /**
     * @return 返回 loginName
     */
    public String getLoginName()
    {
        return loginName;
    }
    
    /**
     * @return 返回 name
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * @return 返回 password
     */
    public String getPassword()
    {
        return password;
    }
    
    /**
     * @return 返回 salt
     */
    public String getSalt()
    {
        return salt;
    }
    
    /**
     * @return 返回 email
     */
    public String getEmail()
    {
        return email;
    }
    
    /**
     * @param 对loginName进行赋值
     */
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }
    
    /**
     * @param 对name进行赋值
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
    /**
     * @param 对password进行赋值
     */
    public void setPassword(String password)
    {
        this.password = password;
    }
    
    /**
     * @param 对salt进行赋值
     */
    public void setSalt(String salt)
    {
        this.salt = salt;
    }
    
    /**
     * @param 对email进行赋值
     */
    public void setEmail(String email)
    {
        this.email = email;
    }
    
    /**
     * @return 返回 failedCount
     */
    public int getFailedCount()
    {
        return failedCount;
    }
    
    /**
     * @param 对failedCount进行赋值
     */
    public void setFailedCount(int failedCount)
    {
        this.failedCount = failedCount;
    }
    
    /**
     * @return 返回 phone
     */
    public String getPhone()
    {
        return phone;
    }
    
    /**
     * @param 对phone进行赋值
     */
    public void setPhone(String phone)
    {
        this.phone = phone;
    }
    
}